import { MenuModel } from "@/core/models/system.model";

export const SystemService = {
  /**
   *
   * @returns 获取菜单
   */
  getMenus(): Promise<MenuModel[]> {
    return new Promise((resolve) => {
      const data = [
        {
          path: "index",
          icon: "icon-shouye",
          name: "首页",
          index: true,
          fixed: true,
        },
        {
          path: "theme",
          icon: "icon-a-huaban2fuben9",
          name: "主题中心",
        },
        {
          path: "message",
          icon: "icon-tongzhi",
          name: "消息管理",
        },
        {
          path: "report",
          icon: "icon-gfbaobiao",
          name: "报表页面",
        },
        {
          path: "group",
          icon: "icon-gfbaobiao",
          name: "团队",
          children: [
            {
              path: "group1",
              name: "团队1",
            },
          ],
        },
      ];
      setTimeout(() => {
        resolve(data);
      }, 200);
    });
  },
};
